package grsu.epam.airline.DAO;

import grsu.epam.airline.model.Flight;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

	public interface IFlightDAO {

		public Flight getFlightById(int flightId) throws SQLException;

		public void deleteFlight(int flightId) throws SQLException;

		public List<Flight> getAllFlight() throws SQLException;

		public Connection getConnection();

		public void updateFlight(int flightId, int crewId, int planeId)throws SQLException;

		public void addFlight(int crewId, int planeId)throws SQLException;;

	}


